package cn.bluemobi.dylan.step.moder.http.api;


import java.util.List;

import cn.bluemobi.dylan.step.moder.bean.Goods;
import cn.bluemobi.dylan.step.moder.bean.MemberAccount;
import cn.bluemobi.dylan.step.moder.bean.StepData;
import cn.bluemobi.dylan.step.moder.bean.User;
import cn.bluemobi.dylan.step.moder.http.response.HttpResponseBean;
import cn.bluemobi.dylan.step.moder.http.response.PageDataBean;
import io.reactivex.Flowable;
import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.Headers;
import retrofit2.http.POST;

/**
 * Created by $Liudan on 2018/8/8 0008.
 */
public interface StepcountApis {


    /**
     * 步数上传
     *
     * @return
     */
    @Headers({"Content-Type: application/json", "Accept: application/json"})
    @POST("updateMemberStepForDayList.json/")
    Flowable<HttpResponseBean<User>> updateMemberStepForDayList(@Body RequestBody info);


    /**
     * 步数列表
     *
     * @param
     * @return
     *
     */
    @FormUrlEncoded
    @POST("memberStepList.json/")
    Flowable<HttpResponseBean<PageDataBean<List<StepData>>>> memberStepList(@Field("currPage") int currPage, @Field("pageSize") int pageSize, @Field("memberId") int memberId, @Field("stepStatus") int stepStatus);


    /**
     * 今日步数
     *
     * @param
     * @return
     */
    @FormUrlEncoded
    @POST("todayStep.json/")
    Flowable<HttpResponseBean<StepData>> todayStep(@Field("memberId") int memberId);



}
